package com.example.api.dto;

public enum ResStatusCode {
   SMS_CHECK_ERROR(5002,"短信验证码不正确"),
    SIGNUP_ERROR(5000,"已注册"),
    KAPTCHA_IMAGE_ERROR(5001,"验证错误"),
    BANNER_QUERY_ERROR(7001,"Banner查询错误"),
    CATEGORY_QUERY_ERROR(6001,"分类查询错误"),
    COURSE_QUERY_LIST_ERROR(8001,"课程列表查询错误"),
    COURSE_QUERY_ERROR(8002,"课程查询错误"),
    COURSE_LESSON_QUERY_ERROR(8003,"课程查询错误"),
    COURSE_ORDER_QUERY_ERROR(8004,"课程购买查询错误");

    private Integer code;

    private String message;

    private ResStatusCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}

